[HVM] When guest explicitly modifies the TSC, update platform timers
authorshand@cosworth.eng.hq.xensource.com <shand@cosworth.eng.hq.xensource.com>
Tue, 30 Jan 2007 00:52:51 +0000 (00:52 +0000)
committershand@cosworth.eng.hq.xensource.com <shand@cosworth.eng.hq.xensource.com>
Tue, 30 Jan 2007 00:52:51 +0000 (00:52 +0000)
commit57e76e2e7ff58646c4ef43f9e113c93668f98877
treef23694614b6dec59c57c860114f302eeb928ddb4
parent495989297b6d42e86f61f590fc87ff68461c9b56
[HVM] When guest explicitly modifies the TSC, update platform timers
_after_ updating guest time (since otherwise pt_reset() will get the
old hvm_get_guest_time() and subsequently pt_intr_post() will warp
the TSC back again).

This is the smallest fix for the HVM SMP TSC issues seen on recent
(viz. 2.6.18+) linux HVM kernels, but probably not the best. Cleaner
fix needs more thought.

Signed-off-by: Steven Hand <steven@xensource.com>
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmx.c